package uit.sample.business;

import java.util.HashMap;

import uit.sample.beans.Book;

public class BookServiceImpl implements BookService {
	private static HashMap books = new HashMap();

	static {
		Book book = null;
		
		book = new Book();
		book.setAuthor("George Franciscus, Danilo Gurovich");
		book.setDescription("A collection of solid strategies to building Struts applications");
		book.setIsbn("1");
		book.setPages(450);
		book.setPrice(67.00);
		book.setPublisher("Manning");
		book.setTitle("Struts Recipes");
		books.put(book.getIsbn(), book);
	}
	
	public Book read(String isbn) {
		return (Book) books.get(isbn);
	}
}
